/*
	Copyright (c) 2013-2015 EasyDarwin.ORG.  All rights reserved.
	Github: https://github.com/EasyDarwin
	WEChat: EasyDarwin
	Website: http://www.easydarwin.org
*/
#ifndef __EASY_BUFF_H__
#define __EASY_BUFF_H__


#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#define		EASY_MAX_FRAME_LEN			1024*1024*4
#define		EASY_MAX_AUDIO_LEN			1024*128

typedef struct __EASY_BUFF_T
{
    int     bufsize;
    int     bufpos;
    char    *pbuf;
}EASY_BUFF_T;

extern int __EASY_MALLOC_MEMORY(EASY_BUFF_T *pEasyBuff, int bufsize);
extern int __EASY_FREE_MEMORY(EASY_BUFF_T *pEasyBuff);

#endif
